<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script>
   $(document).ready(function(){
      $("#diaryBtn").click(function(){
         location.href="${initParam.root }mypage/auth_diaryList.do?page=1";
      });
      $("#mywritingBtn").click(function(){
         location.href="${initParam.root }mypage/auth_myListPub.do";
      });
      $("#infoBtn").click(function(){
         location.href="${initParam.root }auth_myinfo.do";
      });
      $("#listBtn").click(function(){
         location.href="${initParam.root }messenger/auth_friendList.do";
      });
      $("#searchBtn").click(function(){
         location.href="${initParam.root }messenger/auth_findFriendView.do";
      });
      $("#admin").click(function(){
         location.href="${initParam.root}auth_getAllMemberList.do";
      });
   });
</script>
<style>
   img:hover{
      cursor:pointer;
      
   }
</style>
<center>
<img src="${initParam.root}img/diary.png" id="diaryBtn" height="85" align="middle" width="400"><br><br>
<img src="${initParam.root}img/mywritings.png" id="mywritingBtn" height="85" align="middle" width="400"><br><br>
<img src="${initParam.root}img/myinform.png" id="infoBtn" height="85" align="middle" width="400"><br><br>
<span id="btnView"></span>
	<c:choose>
		<c:when test="${sessionScope.loginMember.point == -1}">
			<img src="${initParam.root}img/administrarion.png" id="admin" height="85" align="middle" width="400">
		</c:when>
		<c:otherwise>
			<img src="${initParam.root}img/myfriendlist.png" id="listBtn" height="85" align="middle" width="400"><br><br>
			<img src="${initParam.root}img/mysearchfriend.png" id="searchBtn" height="85" align="middle" width="400">
		</c:otherwise>
	</c:choose>
</center>
